package com.person.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.person.modules.sys.entity.SysCompanyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公司用户
 *
 * @author
 */
@Mapper
public interface SysCompanyDao extends BaseMapper<SysCompanyEntity> {
    SysCompanyEntity queryByCompanyName(@Param(value ="companyName") String companyName);

    SysCompanyEntity queryByUserName(@Param(value = "userName") String userName);

    int add(SysCompanyEntity sysCompanyEntity);

    List<SysCompanyEntity>  getCompanyList(@Param(value = "status") int status);

    Integer getCount();

    void savePicUrl(@Param("newFileName") String newFileName,@Param("compName") String compName);
}
